<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IRremoteESP8266: src/ir_York.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IRremoteESP8266
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ir_York.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ir__York_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Copyright 2022 Daniele Gobbetti</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// Supports:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//   Brand: York,  Model: MHH07P17 A/C</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//   Brand: York,  Model: GRYLH2A remote</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef IR_YORK_H_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define IR_YORK_H_</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#define __STDC_LIMIT_MACROS</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#ifndef UNIT_TEST</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;Arduino.h&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="IRremoteESP8266_8h.html">IRremoteESP8266.h</a>&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="IRsend_8h.html">IRsend.h</a>&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifdef UNIT_TEST</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;IRsend_test.h&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html">   26</a></span>&#160;<span class="keyword">union </span><a class="code" href="unionYorkProtocol.html">YorkProtocol</a>{</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#aea8e7d0ab0afba7ef6b95e683593e033">   27</a></span>&#160;  uint8_t <a class="code" href="unionYorkProtocol.html#aea8e7d0ab0afba7ef6b95e683593e033">raw</a>[<a class="code" href="IRremoteESP8266_8h.html#ac7292d2884d3a976291f18e5bc52619e">kYorkStateLength</a>];  </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="comment">// byte 0-5</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a93b27278b921ddeb9912d8767f35f600">   30</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a93b27278b921ddeb9912d8767f35f600">preamble</a>[6];  <span class="comment">// unknown, fixed 0x08, 0x10, 0x07, 0x02, 0x40, 0x08</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="comment">// byte 6</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a7aba6477d05c9bda02ceb14963f20a15">   32</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a7aba6477d05c9bda02ceb14963f20a15">Key1</a>     :4;  <span class="comment">// key pressed on the remote: 1 power,  2 temp up, 3</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                          <span class="comment">// temp down...</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a88b54aa7a3cc1889d6aef795bc2060c0">   34</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a88b54aa7a3cc1889d6aef795bc2060c0">Key2</a>     :4;  <span class="comment">// only set when setting ontime/offtime:</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                          <span class="comment">// Key1 value is 0x6 (enter key) and Key2 is 0x3 for</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                          <span class="comment">// &quot;start&quot; and 0x2 for &quot;stop&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="comment">// byte 7</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a3bcecfc33d1fd31d84b1b96a019d27fd">   38</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a3bcecfc33d1fd31d84b1b96a019d27fd">Fan</a>      :4;  <span class="comment">// Fan speed: 1 low, 2 mid, 3 max, 8 auto</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#af770acc7f3f9ab5b0a3ad19827434de5">   39</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#af770acc7f3f9ab5b0a3ad19827434de5">Power</a>    :1;  <span class="comment">// main unit power: 1 on, 0 off</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a58312a8fbd166d607f7bd65187e59774">   40</a></span>&#160;    uint8_t          :3;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="comment">// byte 8</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#aaa2a0bde1a2ae38002a12439a2852df1">   42</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#aaa2a0bde1a2ae38002a12439a2852df1">Mode</a>     :4;  <span class="comment">// 1 heat, 2 cool, 3 dry, 4 fan, 8 auto</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a1844ef985c78f8c38f06cc23f07c6ffa">   43</a></span>&#160;    uint8_t          :4;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="comment">// byte 9</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#abe501e8153e1c691fcde2f554853cc2b">   45</a></span>&#160;    uint8_t          :2;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a98cdb0687460ee09ee856987a75b1146">   46</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a98cdb0687460ee09ee856987a75b1146">Temp</a>     :6;  <span class="comment">// Degrees Celsius</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">// byte 10</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a0bbd65778565f69b868102804b11ae53">   48</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a0bbd65778565f69b868102804b11ae53">OffTimer</a> :8;  <span class="comment">// Power off time: 10s of minutes from now</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="comment">// byte 11</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a5fb385c3b440fba89da34d8f8850e3ee">   50</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a5fb385c3b440fba89da34d8f8850e3ee">OnTimer</a>  :8;  <span class="comment">// Power on time: 10s of minutes from now</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="comment">// byte 12</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a9c2b86d91f3204a263d21957f5e73d73">   52</a></span>&#160;    uint8_t          :8;  <span class="comment">// unknown, normally 0x00, could be 0x08 when ontime</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                          <span class="comment">// set, 0x88 if both on and offtime set, 0x60 if</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                          <span class="comment">// sleep mode set</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="comment">// byte 13</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a156cb97528b78c26eb188e272cdd4e32">   56</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a156cb97528b78c26eb188e272cdd4e32">SwingV</a>   :1;  <span class="comment">// 0 off, 1 on</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a944ac48059ebc47f62ebb29fb813a0f5">   57</a></span>&#160;    uint8_t          :7;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="comment">// byte 14</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a3d6b5cfb388c77fc6b97a3d0e710ebe2">   59</a></span>&#160;    uint8_t          :8;  <span class="comment">// checksum preamble, fixed 0xEC</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">// byte 15-16</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#af188b670d2fb53f7c4a1a9bd08ba5c25">   61</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#af188b670d2fb53f7c4a1a9bd08ba5c25">Chk1</a>     :8;  <span class="comment">// checksum, algorithm CRC-16/ARC, first byte</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="unionYorkProtocol.html#a4c318b98e44e52d23279aa31b25db640">   62</a></span>&#160;    uint8_t <a class="code" href="unionYorkProtocol.html#a4c318b98e44e52d23279aa31b25db640">Chk2</a>     :8;  <span class="comment">// checksum, algorithm CRC-16/ARC, second byte</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  };</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;};</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment">// Constants</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a8b6cf6c707f5f8f618ab103d318bafbf">   67</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a8b6cf6c707f5f8f618ab103d318bafbf">kYorkKnownGoodState</a>[<a class="code" href="IRremoteESP8266_8h.html#ac7292d2884d3a976291f18e5bc52619e">kYorkStateLength</a>] = {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    0x08, 0x10, 0x07, 0x02, 0x40, 0x08,</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    0x03, 0x18, 0x01, 0x60, 0x00, 0x00, 0x00, 0x00,</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    0xEC,</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    0xF5, 0xF2};  <span class="comment">// Mode &quot;Heat&quot;, Fan Speed &quot;auto&quot;, Temp: 24, Power: on</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment">// Temperature</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="ir__York_8h.html#aa10cafb2ec0472bdbfd5f58bacb5f6dc">   74</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#aa10cafb2ec0472bdbfd5f58bacb5f6dc">kYorkMinTemp</a> = 18;  <span class="comment">// Celsius</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="ir__York_8h.html#ac37ac704c9587d0d352e3e583816e026">   75</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#ac37ac704c9587d0d352e3e583816e026">kYorkMaxTemp</a> = 32;  <span class="comment">// Celsius</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">// Fan</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a424d5a561dff653bbca6471b240a990a">   77</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a424d5a561dff653bbca6471b240a990a">kYorkFanLow</a> = 1;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="ir__York_8h.html#aa89212623c536f58b857a7c10217fc6c">   78</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#aa89212623c536f58b857a7c10217fc6c">kYorkFanMedium</a> = 2;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a2c4630d05bdf49305ab9a31a16d3a69f">   79</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a2c4630d05bdf49305ab9a31a16d3a69f">kYorkFanHigh</a> = 3;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a15fa9f0bcab35e3badbc4ce4cb75331b">   80</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a15fa9f0bcab35e3badbc4ce4cb75331b">kYorkFanAuto</a> = 8;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">// Modes</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a221ce85e0cb550bea59ede76201db90d">   82</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a221ce85e0cb550bea59ede76201db90d">kYorkHeat</a> = 1;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a3d6228c7651a5962c9f2c3d27d373f12">   83</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a3d6228c7651a5962c9f2c3d27d373f12">kYorkCool</a> = 2;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a9352d44be80f4afe5eb823d0d4c52abb">   84</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a9352d44be80f4afe5eb823d0d4c52abb">kYorkDry</a> = 3;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="ir__York_8h.html#a6450d8edb582b00094e7a88c38bccab4">   85</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#a6450d8edb582b00094e7a88c38bccab4">kYorkFan</a> = 4;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="ir__York_8h.html#aac52d4bbd1d47c5930d22215365dc1e8">   86</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="ir__York_8h.html#aac52d4bbd1d47c5930d22215365dc1e8">kYorkAuto</a> = 8;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment">// Classes</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classIRYorkAc.html">   90</a></span>&#160;<span class="comment"></span><span class="keyword">class </span><a class="code" href="classIRYorkAc.html">IRYorkAc</a> {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classIRYorkAc.html#a60c80ffea3f8d78910cfaecd23401539">IRYorkAc</a>(<span class="keyword">const</span> uint16_t pin, <span class="keyword">const</span> <span class="keywordtype">bool</span> inverted = <span class="keyword">false</span>,</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                       <span class="keyword">const</span> <span class="keywordtype">bool</span> use_modulation = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a837a0f5f511ca3f3faf899a09f8f8174">stateReset</a>();</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#if SEND_YORK</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a71dc8520efce0ffefc243554ed29c6e9">send</a>(<span class="keyword">const</span> uint16_t repeat = <a class="code" href="IRremoteESP8266_8h.html#a1a49dde7ffbd753f7756cf0c9dc6d826">kNoRepeat</a>);</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classIRYorkAc.html#aae383edf3b0d9a52d12c53261b5c4c16">  101</a></span>&#160;  int8_t <a class="code" href="classIRYorkAc.html#aae383edf3b0d9a52d12c53261b5c4c16">calibrate</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <a class="code" href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">_irsend</a>.<a class="code" href="classIRsend.html#ad1776aa6c699f9eeca1eef9bb4fe355b">calibrate</a>(); }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">#endif  // SEND_YORK</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a7d37c61900600f1c2c6a4eb90c0681f8">begin</a>();</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a8db0b54efeb85f36b6580ebc3c9bbbde">setPowerToggle</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> on);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classIRYorkAc.html#a86e69ac71e912972eedd5a29aaffe872">getPowerToggle</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a86aa97943e74e8b3ba5d30472c6922c2">setTemp</a>(<span class="keyword">const</span> uint8_t temp);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  uint8_t <a class="code" href="classIRYorkAc.html#a793d2df1896d0d5ebafe6781071d8676">getTemp</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#aa7b42cd7798b5577d4f0bfe2657d7fcb">setFan</a>(<span class="keyword">const</span> uint8_t speed);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  uint8_t <a class="code" href="classIRYorkAc.html#a045dc64fb8c965f65fbfda92f3efb19c">getFan</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a0dac4ef32c012b07d51c920267974bfd">setMode</a>(<span class="keyword">const</span> uint8_t mode);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  uint8_t <a class="code" href="classIRYorkAc.html#a79ceb5a716061e1dfd1d808691a5e9f2">getMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  uint16_t <a class="code" href="classIRYorkAc.html#aa280a0a616546e49069c5ee342fbb0a5">getOnTimer</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  uint16_t <a class="code" href="classIRYorkAc.html#a1e6f08d5f5ceedef6b2f26d926aa3efb">getOffTimer</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#ab2b759427d0c70298f5444499bea4052">setOnTimer</a>(<span class="keyword">const</span> uint16_t mins);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#adb9dd28a79a36b05fce6cca63ad78486">setOffTimer</a>(<span class="keyword">const</span> uint16_t mins);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  uint8_t* <a class="code" href="classIRYorkAc.html#a050adf388708d403de7a92399d8aa42f">getRaw</a>();</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a7dcb694f7d005e19c3ac6d1d0d1efd5f">setRaw</a>(<span class="keyword">const</span> uint8_t new_code[],</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;              <span class="keyword">const</span> uint16_t length = <a class="code" href="IRremoteESP8266_8h.html#ac7292d2884d3a976291f18e5bc52619e">kYorkStateLength</a>);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="keyword">static</span> uint8_t <a class="code" href="classIRYorkAc.html#a1a9252c344d135b5306e25115ee0f5e5">convertMode</a>(<span class="keyword">const</span> <a class="code" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a> mode);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <span class="keyword">static</span> uint8_t <a class="code" href="classIRYorkAc.html#a4dc5170e87d5d4cfefe7fc9fec2bfea2">convertFan</a>(<span class="keyword">const</span> <a class="code" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a> speed);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classIRYorkAc.html#a7a6e2f89742321d88d2e1cc1dc88aba4">calcChecksum</a>();</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <span class="keyword">static</span> <a class="code" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a> <a class="code" href="classIRYorkAc.html#a45ae7d8e7cd4bd0b5d225d39908df41f">toCommonMode</a>(<span class="keyword">const</span> uint8_t mode);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="keyword">static</span> <a class="code" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a> <a class="code" href="classIRYorkAc.html#ad33a65b43e04e47db78b36fe004aaebc">toCommonFanSpeed</a>(<span class="keyword">const</span> uint8_t speed);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  <a class="code" href="structstdAc_1_1state__t.html">stdAc::state_t</a> <a class="code" href="classIRYorkAc.html#a51d20e6bf26b22d3db5ac665a4b78068">toCommon</a>(<span class="keyword">const</span> <a class="code" href="structstdAc_1_1state__t.html">stdAc::state_t</a> *prev = NULL) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  <a class="code" href="IRremoteESP8266_8h.html#afbeda3fd1bdc8c37d01bdf9f5c8274ff">String</a> <a class="code" href="classIRYorkAc.html#a86cc941375bdb67b1d493e4427a8839e">toString</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#ifndef UNIT_TEST</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">  129</a></span>&#160;  <a class="code" href="classIRsend.html">IRsend</a> <a class="code" href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">_irsend</a>;  </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  IRsendTest <a class="code" href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">_irsend</a>;  </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="classIRYorkAc.html#a381ca2c3b382605f47d960096cfee5d9">  135</a></span>&#160;  <a class="code" href="unionYorkProtocol.html">YorkProtocol</a> <a class="code" href="classIRYorkAc.html#a381ca2c3b382605f47d960096cfee5d9">_</a>;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;};</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#endif  // IR_YORK_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aunionYorkProtocol_html_a4c318b98e44e52d23279aa31b25db640"><div class="ttname"><a href="unionYorkProtocol.html#a4c318b98e44e52d23279aa31b25db640">YorkProtocol::Chk2</a></div><div class="ttdeci">uint8_t Chk2</div><div class="ttdef"><b>Definition:</b> ir_York.h:62</div></div>
<div class="ttc" id="aclassIRYorkAc_html_ad33a65b43e04e47db78b36fe004aaebc"><div class="ttname"><a href="classIRYorkAc.html#ad33a65b43e04e47db78b36fe004aaebc">IRYorkAc::toCommonFanSpeed</a></div><div class="ttdeci">static stdAc::fanspeed_t toCommonFanSpeed(const uint8_t speed)</div><div class="ttdoc">Convert a native fan speed into its stdAc equivalent.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:234</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a045dc64fb8c965f65fbfda92f3efb19c"><div class="ttname"><a href="classIRYorkAc.html#a045dc64fb8c965f65fbfda92f3efb19c">IRYorkAc::getFan</a></div><div class="ttdeci">uint8_t getFan() const</div><div class="ttdoc">Get the current fan speed setting.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:209</div></div>
<div class="ttc" id="aclassIRYorkAc_html_aae383edf3b0d9a52d12c53261b5c4c16"><div class="ttname"><a href="classIRYorkAc.html#aae383edf3b0d9a52d12c53261b5c4c16">IRYorkAc::calibrate</a></div><div class="ttdeci">int8_t calibrate(void)</div><div class="ttdoc">Run the calibration to calculate uSec timing offsets for this platform.</div><div class="ttdef"><b>Definition:</b> ir_York.h:101</div></div>
<div class="ttc" id="aclassIRYorkAc_html"><div class="ttname"><a href="classIRYorkAc.html">IRYorkAc</a></div><div class="ttdoc">Class for handling detailed York A/C messages.</div><div class="ttdef"><b>Definition:</b> ir_York.h:90</div></div>
<div class="ttc" id="air__York_8h_html_ac37ac704c9587d0d352e3e583816e026"><div class="ttname"><a href="ir__York_8h.html#ac37ac704c9587d0d352e3e583816e026">kYorkMaxTemp</a></div><div class="ttdeci">const uint8_t kYorkMaxTemp</div><div class="ttdef"><b>Definition:</b> ir_York.h:75</div></div>
<div class="ttc" id="aunionYorkProtocol_html"><div class="ttname"><a href="unionYorkProtocol.html">YorkProtocol</a></div><div class="ttdoc">Native representation of a York A/C message.</div><div class="ttdef"><b>Definition:</b> ir_York.h:26</div></div>
<div class="ttc" id="anamespacestdAc_html_a8bb0dbf18fe69f639f4ac0b3ff133383"><div class="ttname"><a href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a></div><div class="ttdeci">fanspeed_t</div><div class="ttdoc">Common A/C settings for Fan Speeds.</div><div class="ttdef"><b>Definition:</b> IRsend.h:61</div></div>
<div class="ttc" id="aclassIRYorkAc_html_aa280a0a616546e49069c5ee342fbb0a5"><div class="ttname"><a href="classIRYorkAc.html#aa280a0a616546e49069c5ee342fbb0a5">IRYorkAc::getOnTimer</a></div><div class="ttdeci">uint16_t getOnTimer(void) const</div><div class="ttdoc">Get the On Timer setting of the A/C.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:274</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a7dcb694f7d005e19c3ac6d1d0d1efd5f"><div class="ttname"><a href="classIRYorkAc.html#a7dcb694f7d005e19c3ac6d1d0d1efd5f">IRYorkAc::setRaw</a></div><div class="ttdeci">void setRaw(const uint8_t new_code[], const uint16_t length=kYorkStateLength)</div><div class="ttdoc">Set the internal state from a valid code for this protocol.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:127</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a156cb97528b78c26eb188e272cdd4e32"><div class="ttname"><a href="unionYorkProtocol.html#a156cb97528b78c26eb188e272cdd4e32">YorkProtocol::SwingV</a></div><div class="ttdeci">uint8_t SwingV</div><div class="ttdef"><b>Definition:</b> ir_York.h:56</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a7a6e2f89742321d88d2e1cc1dc88aba4"><div class="ttname"><a href="classIRYorkAc.html#a7a6e2f89742321d88d2e1cc1dc88aba4">IRYorkAc::calcChecksum</a></div><div class="ttdeci">void calcChecksum()</div><div class="ttdoc">CRC16-16 (a.k.a. CRC-16-IBM)</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:286</div></div>
<div class="ttc" id="air__York_8h_html_a6450d8edb582b00094e7a88c38bccab4"><div class="ttname"><a href="ir__York_8h.html#a6450d8edb582b00094e7a88c38bccab4">kYorkFan</a></div><div class="ttdeci">const uint8_t kYorkFan</div><div class="ttdef"><b>Definition:</b> ir_York.h:85</div></div>
<div class="ttc" id="aclassIRYorkAc_html_aa7b42cd7798b5577d4f0bfe2657d7fcb"><div class="ttname"><a href="classIRYorkAc.html#aa7b42cd7798b5577d4f0bfe2657d7fcb">IRYorkAc::setFan</a></div><div class="ttdeci">void setFan(const uint8_t speed)</div><div class="ttdoc">Set the speed of the fan.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:191</div></div>
<div class="ttc" id="aIRsend_8h_html"><div class="ttname"><a href="IRsend_8h.html">IRsend.h</a></div></div>
<div class="ttc" id="aclassIRYorkAc_html_a1a9252c344d135b5306e25115ee0f5e5"><div class="ttname"><a href="classIRYorkAc.html#a1a9252c344d135b5306e25115ee0f5e5">IRYorkAc::convertMode</a></div><div class="ttdeci">static uint8_t convertMode(const stdAc::opmode_t mode)</div><div class="ttdoc">Convert a stdAc::opmode_t enum into its native mode.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:164</div></div>
<div class="ttc" id="air__York_8h_html_a424d5a561dff653bbca6471b240a990a"><div class="ttname"><a href="ir__York_8h.html#a424d5a561dff653bbca6471b240a990a">kYorkFanLow</a></div><div class="ttdeci">const uint8_t kYorkFanLow</div><div class="ttdef"><b>Definition:</b> ir_York.h:77</div></div>
<div class="ttc" id="air__York_8h_html_a9352d44be80f4afe5eb823d0d4c52abb"><div class="ttname"><a href="ir__York_8h.html#a9352d44be80f4afe5eb823d0d4c52abb">kYorkDry</a></div><div class="ttdeci">const uint8_t kYorkDry</div><div class="ttdef"><b>Definition:</b> ir_York.h:84</div></div>
<div class="ttc" id="aclassIRsend_html"><div class="ttname"><a href="classIRsend.html">IRsend</a></div><div class="ttdoc">Class for sending all basic IR protocols.</div><div class="ttdef"><b>Definition:</b> IRsend.h:237</div></div>
<div class="ttc" id="aclassIRsend_html_ad1776aa6c699f9eeca1eef9bb4fe355b"><div class="ttname"><a href="classIRsend.html#ad1776aa6c699f9eeca1eef9bb4fe355b">IRsend::calibrate</a></div><div class="ttdeci">int8_t calibrate(uint16_t hz=38000U)</div><div class="ttdoc">Calculate &amp; set any offsets to account for execution times during sending.</div><div class="ttdef"><b>Definition:</b> IRsend.cpp:207</div></div>
<div class="ttc" id="air__York_8h_html_aac52d4bbd1d47c5930d22215365dc1e8"><div class="ttname"><a href="ir__York_8h.html#aac52d4bbd1d47c5930d22215365dc1e8">kYorkAuto</a></div><div class="ttdeci">const uint8_t kYorkAuto</div><div class="ttdef"><b>Definition:</b> ir_York.h:86</div></div>
<div class="ttc" id="aIRremoteESP8266_8h_html_afbeda3fd1bdc8c37d01bdf9f5c8274ff"><div class="ttname"><a href="IRremoteESP8266_8h.html#afbeda3fd1bdc8c37d01bdf9f5c8274ff">String</a></div><div class="ttdeci">std::string String</div><div class="ttdef"><b>Definition:</b> IRremoteESP8266.h:1521</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a7aba6477d05c9bda02ceb14963f20a15"><div class="ttname"><a href="unionYorkProtocol.html#a7aba6477d05c9bda02ceb14963f20a15">YorkProtocol::Key1</a></div><div class="ttdeci">uint8_t Key1</div><div class="ttdef"><b>Definition:</b> ir_York.h:32</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a0bbd65778565f69b868102804b11ae53"><div class="ttname"><a href="unionYorkProtocol.html#a0bbd65778565f69b868102804b11ae53">YorkProtocol::OffTimer</a></div><div class="ttdeci">uint8_t OffTimer</div><div class="ttdef"><b>Definition:</b> ir_York.h:48</div></div>
<div class="ttc" id="aclassIRYorkAc_html_adb9dd28a79a36b05fce6cca63ad78486"><div class="ttname"><a href="classIRYorkAc.html#adb9dd28a79a36b05fce6cca63ad78486">IRYorkAc::setOffTimer</a></div><div class="ttdeci">void setOffTimer(const uint16_t mins)</div><div class="ttdoc">Set the Off Timer value of the A/C.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:267</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a60c80ffea3f8d78910cfaecd23401539"><div class="ttname"><a href="classIRYorkAc.html#a60c80ffea3f8d78910cfaecd23401539">IRYorkAc::IRYorkAc</a></div><div class="ttdeci">IRYorkAc(const uint16_t pin, const bool inverted=false, const bool use_modulation=true)</div><div class="ttdoc">Class constructor.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:101</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a381ca2c3b382605f47d960096cfee5d9"><div class="ttname"><a href="classIRYorkAc.html#a381ca2c3b382605f47d960096cfee5d9">IRYorkAc::_</a></div><div class="ttdeci">YorkProtocol _</div><div class="ttdef"><b>Definition:</b> ir_York.h:135</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a5fb385c3b440fba89da34d8f8850e3ee"><div class="ttname"><a href="unionYorkProtocol.html#a5fb385c3b440fba89da34d8f8850e3ee">YorkProtocol::OnTimer</a></div><div class="ttdeci">uint8_t OnTimer</div><div class="ttdef"><b>Definition:</b> ir_York.h:50</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a45ae7d8e7cd4bd0b5d225d39908df41f"><div class="ttname"><a href="classIRYorkAc.html#a45ae7d8e7cd4bd0b5d225d39908df41f">IRYorkAc::toCommonMode</a></div><div class="ttdeci">static stdAc::opmode_t toCommonMode(const uint8_t mode)</div><div class="ttdoc">Convert a native mode into its stdAc equivalent.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:177</div></div>
<div class="ttc" id="air__York_8h_html_a3d6228c7651a5962c9f2c3d27d373f12"><div class="ttname"><a href="ir__York_8h.html#a3d6228c7651a5962c9f2c3d27d373f12">kYorkCool</a></div><div class="ttdeci">const uint8_t kYorkCool</div><div class="ttdef"><b>Definition:</b> ir_York.h:83</div></div>
<div class="ttc" id="aIRremoteESP8266_8h_html"><div class="ttname"><a href="IRremoteESP8266_8h.html">IRremoteESP8266.h</a></div></div>
<div class="ttc" id="aclassIRYorkAc_html_a050adf388708d403de7a92399d8aa42f"><div class="ttname"><a href="classIRYorkAc.html#a050adf388708d403de7a92399d8aa42f">IRYorkAc::getRaw</a></div><div class="ttdeci">uint8_t * getRaw()</div><div class="ttdoc">Get the raw state of the object, suitable to be sent with the appropriate IRsend object method.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:119</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a79ceb5a716061e1dfd1d808691a5e9f2"><div class="ttname"><a href="classIRYorkAc.html#a79ceb5a716061e1dfd1d808691a5e9f2">IRYorkAc::getMode</a></div><div class="ttdeci">uint8_t getMode() const</div><div class="ttdoc">Get the current operation mode setting.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:141</div></div>
<div class="ttc" id="aIRremoteESP8266_8h_html_a1a49dde7ffbd753f7756cf0c9dc6d826"><div class="ttname"><a href="IRremoteESP8266_8h.html#a1a49dde7ffbd753f7756cf0c9dc6d826">kNoRepeat</a></div><div class="ttdeci">const uint16_t kNoRepeat</div><div class="ttdef"><b>Definition:</b> IRremoteESP8266.h:1145</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a1e6f08d5f5ceedef6b2f26d926aa3efb"><div class="ttname"><a href="classIRYorkAc.html#a1e6f08d5f5ceedef6b2f26d926aa3efb">IRYorkAc::getOffTimer</a></div><div class="ttdeci">uint16_t getOffTimer(void) const</div><div class="ttdoc">Get the Off Timer setting of the A/C.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:281</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a8db0b54efeb85f36b6580ebc3c9bbbde"><div class="ttname"><a href="classIRYorkAc.html#a8db0b54efeb85f36b6580ebc3c9bbbde">IRYorkAc::setPowerToggle</a></div><div class="ttdeci">void setPowerToggle(const bool on)</div></div>
<div class="ttc" id="aIRremoteESP8266_8h_html_ac7292d2884d3a976291f18e5bc52619e"><div class="ttname"><a href="IRremoteESP8266_8h.html#ac7292d2884d3a976291f18e5bc52619e">kYorkStateLength</a></div><div class="ttdeci">const uint16_t kYorkStateLength</div><div class="ttdef"><b>Definition:</b> IRremoteESP8266.h:1437</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a86cc941375bdb67b1d493e4427a8839e"><div class="ttname"><a href="classIRYorkAc.html#a86cc941375bdb67b1d493e4427a8839e">IRYorkAc::toString</a></div><div class="ttdeci">String toString() const</div><div class="ttdoc">Convert the current internal state into a human readable string.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:341</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a4dc5170e87d5d4cfefe7fc9fec2bfea2"><div class="ttname"><a href="classIRYorkAc.html#a4dc5170e87d5d4cfefe7fc9fec2bfea2">IRYorkAc::convertFan</a></div><div class="ttdeci">static uint8_t convertFan(const stdAc::fanspeed_t speed)</div><div class="ttdoc">Convert a stdAc::fanspeed_t enum into it's native speed.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:216</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a88b54aa7a3cc1889d6aef795bc2060c0"><div class="ttname"><a href="unionYorkProtocol.html#a88b54aa7a3cc1889d6aef795bc2060c0">YorkProtocol::Key2</a></div><div class="ttdeci">uint8_t Key2</div><div class="ttdef"><b>Definition:</b> ir_York.h:34</div></div>
<div class="ttc" id="air__York_8h_html_a2c4630d05bdf49305ab9a31a16d3a69f"><div class="ttname"><a href="ir__York_8h.html#a2c4630d05bdf49305ab9a31a16d3a69f">kYorkFanHigh</a></div><div class="ttdeci">const uint8_t kYorkFanHigh</div><div class="ttdef"><b>Definition:</b> ir_York.h:79</div></div>
<div class="ttc" id="aunionYorkProtocol_html_af770acc7f3f9ab5b0a3ad19827434de5"><div class="ttname"><a href="unionYorkProtocol.html#af770acc7f3f9ab5b0a3ad19827434de5">YorkProtocol::Power</a></div><div class="ttdeci">uint8_t Power</div><div class="ttdef"><b>Definition:</b> ir_York.h:39</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a86aa97943e74e8b3ba5d30472c6922c2"><div class="ttname"><a href="classIRYorkAc.html#a86aa97943e74e8b3ba5d30472c6922c2">IRYorkAc::setTemp</a></div><div class="ttdeci">void setTemp(const uint8_t temp)</div><div class="ttdoc">Set the temperature.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:245</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a98cdb0687460ee09ee856987a75b1146"><div class="ttname"><a href="unionYorkProtocol.html#a98cdb0687460ee09ee856987a75b1146">YorkProtocol::Temp</a></div><div class="ttdeci">uint8_t Temp</div><div class="ttdef"><b>Definition:</b> ir_York.h:46</div></div>
<div class="ttc" id="aclassIRYorkAc_html_ab2b759427d0c70298f5444499bea4052"><div class="ttname"><a href="classIRYorkAc.html#ab2b759427d0c70298f5444499bea4052">IRYorkAc::setOnTimer</a></div><div class="ttdeci">void setOnTimer(const uint16_t mins)</div><div class="ttdoc">Set the On Timer value of the A/C.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:259</div></div>
<div class="ttc" id="aunionYorkProtocol_html_af188b670d2fb53f7c4a1a9bd08ba5c25"><div class="ttname"><a href="unionYorkProtocol.html#af188b670d2fb53f7c4a1a9bd08ba5c25">YorkProtocol::Chk1</a></div><div class="ttdeci">uint8_t Chk1</div><div class="ttdef"><b>Definition:</b> ir_York.h:61</div></div>
<div class="ttc" id="aunionYorkProtocol_html_aea8e7d0ab0afba7ef6b95e683593e033"><div class="ttname"><a href="unionYorkProtocol.html#aea8e7d0ab0afba7ef6b95e683593e033">YorkProtocol::raw</a></div><div class="ttdeci">uint8_t raw[kYorkStateLength]</div><div class="ttdoc">The state of the IR remote.</div><div class="ttdef"><b>Definition:</b> ir_York.h:27</div></div>
<div class="ttc" id="air__York_8h_html_aa89212623c536f58b857a7c10217fc6c"><div class="ttname"><a href="ir__York_8h.html#aa89212623c536f58b857a7c10217fc6c">kYorkFanMedium</a></div><div class="ttdeci">const uint8_t kYorkFanMedium</div><div class="ttdef"><b>Definition:</b> ir_York.h:78</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a0dac4ef32c012b07d51c920267974bfd"><div class="ttname"><a href="classIRYorkAc.html#a0dac4ef32c012b07d51c920267974bfd">IRYorkAc::setMode</a></div><div class="ttdeci">void setMode(const uint8_t mode)</div><div class="ttdoc">Set the desired operation mode.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:147</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a3bcecfc33d1fd31d84b1b96a019d27fd"><div class="ttname"><a href="unionYorkProtocol.html#a3bcecfc33d1fd31d84b1b96a019d27fd">YorkProtocol::Fan</a></div><div class="ttdeci">uint8_t Fan</div><div class="ttdef"><b>Definition:</b> ir_York.h:38</div></div>
<div class="ttc" id="air__York_8h_html_a15fa9f0bcab35e3badbc4ce4cb75331b"><div class="ttname"><a href="ir__York_8h.html#a15fa9f0bcab35e3badbc4ce4cb75331b">kYorkFanAuto</a></div><div class="ttdeci">const uint8_t kYorkFanAuto</div><div class="ttdef"><b>Definition:</b> ir_York.h:80</div></div>
<div class="ttc" id="air__York_8h_html_aa10cafb2ec0472bdbfd5f58bacb5f6dc"><div class="ttname"><a href="ir__York_8h.html#aa10cafb2ec0472bdbfd5f58bacb5f6dc">kYorkMinTemp</a></div><div class="ttdeci">const uint8_t kYorkMinTemp</div><div class="ttdef"><b>Definition:</b> ir_York.h:74</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a51d20e6bf26b22d3db5ac665a4b78068"><div class="ttname"><a href="classIRYorkAc.html#a51d20e6bf26b22d3db5ac665a4b78068">IRYorkAc::toCommon</a></div><div class="ttdeci">stdAc::state_t toCommon(const stdAc::state_t *prev=NULL) const</div><div class="ttdoc">Convert the current internal state into its stdAc::state_t equivalent.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:307</div></div>
<div class="ttc" id="aclassIRYorkAc_html_ad76a86732e1e08591d3109243e6c057b"><div class="ttname"><a href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">IRYorkAc::_irsend</a></div><div class="ttdeci">IRsend _irsend</div><div class="ttdoc">Instance of the IR send class.</div><div class="ttdef"><b>Definition:</b> ir_York.h:129</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a7d37c61900600f1c2c6a4eb90c0681f8"><div class="ttname"><a href="classIRYorkAc.html#a7d37c61900600f1c2c6a4eb90c0681f8">IRYorkAc::begin</a></div><div class="ttdeci">void begin()</div><div class="ttdoc">Set up hardware to be able to send a message.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:114</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a71dc8520efce0ffefc243554ed29c6e9"><div class="ttname"><a href="classIRYorkAc.html#a71dc8520efce0ffefc243554ed29c6e9">IRYorkAc::send</a></div><div class="ttdeci">void send(const uint16_t repeat=kNoRepeat)</div><div class="ttdoc">Send the current internal state as an IR message.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:134</div></div>
<div class="ttc" id="air__York_8h_html_a221ce85e0cb550bea59ede76201db90d"><div class="ttname"><a href="ir__York_8h.html#a221ce85e0cb550bea59ede76201db90d">kYorkHeat</a></div><div class="ttdeci">const uint8_t kYorkHeat</div><div class="ttdef"><b>Definition:</b> ir_York.h:82</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a86e69ac71e912972eedd5a29aaffe872"><div class="ttname"><a href="classIRYorkAc.html#a86e69ac71e912972eedd5a29aaffe872">IRYorkAc::getPowerToggle</a></div><div class="ttdeci">bool getPowerToggle() const</div></div>
<div class="ttc" id="astructstdAc_1_1state__t_html"><div class="ttname"><a href="structstdAc_1_1state__t.html">stdAc::state_t</a></div><div class="ttdoc">Structure to hold a common A/C state.</div><div class="ttdef"><b>Definition:</b> IRsend.h:114</div></div>
<div class="ttc" id="aunionYorkProtocol_html_aaa2a0bde1a2ae38002a12439a2852df1"><div class="ttname"><a href="unionYorkProtocol.html#aaa2a0bde1a2ae38002a12439a2852df1">YorkProtocol::Mode</a></div><div class="ttdeci">uint8_t Mode</div><div class="ttdef"><b>Definition:</b> ir_York.h:42</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a793d2df1896d0d5ebafe6781071d8676"><div class="ttname"><a href="classIRYorkAc.html#a793d2df1896d0d5ebafe6781071d8676">IRYorkAc::getTemp</a></div><div class="ttdeci">uint8_t getTemp() const</div><div class="ttdoc">Get the current temperature setting.</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:251</div></div>
<div class="ttc" id="aclassIRYorkAc_html_a837a0f5f511ca3f3faf899a09f8f8174"><div class="ttname"><a href="classIRYorkAc.html#a837a0f5f511ca3f3faf899a09f8f8174">IRYorkAc::stateReset</a></div><div class="ttdeci">void stateReset()</div><div class="ttdef"><b>Definition:</b> ir_York.cpp:108</div></div>
<div class="ttc" id="aunionYorkProtocol_html_a93b27278b921ddeb9912d8767f35f600"><div class="ttname"><a href="unionYorkProtocol.html#a93b27278b921ddeb9912d8767f35f600">YorkProtocol::preamble</a></div><div class="ttdeci">uint8_t preamble[6]</div><div class="ttdef"><b>Definition:</b> ir_York.h:30</div></div>
<div class="ttc" id="air__York_8h_html_a8b6cf6c707f5f8f618ab103d318bafbf"><div class="ttname"><a href="ir__York_8h.html#a8b6cf6c707f5f8f618ab103d318bafbf">kYorkKnownGoodState</a></div><div class="ttdeci">const uint8_t kYorkKnownGoodState[kYorkStateLength]</div><div class="ttdef"><b>Definition:</b> ir_York.h:67</div></div>
<div class="ttc" id="anamespacestdAc_html_a99ad268c783486f9b3207cb78f48444f"><div class="ttname"><a href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a></div><div class="ttdeci">opmode_t</div><div class="ttdoc">Common A/C settings for A/C operating modes.</div><div class="ttdef"><b>Definition:</b> IRsend.h:49</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
